<div>
	<center>
	<?php 
		$gp_flag = null;
		foreach ($this->gp as $gp) 
		{
			if ($gp_flag != $gp->id_gp)
			{
				$gp_flag = $gp->id_gp;
	?>
			<table width='750px' height='25px' class='cabecera1'>
				<tr>
					<td width='30px'><?php echo $this->Banderas($gp->bandera); ?></td>
					<td width='150px'><b><?php echo utf8_encode($gp->nombre_gp); ?></b></td>
					<td width='250px'><b>Circuito de <?php echo utf8_encode($gp->ubicacion); ?></b></td>
					<td width='170px'><b><?php echo $this->fecha($gp->fecha_gp); ?></b></td>
				</tr>
			</table>
			<table width='750px' class='cabecera2'>
				<tr align='left'>
					<td width='140px'><b>POLE</b>&nbsp;<?php echo $this->Icono('crono.png',-3); ?></td>
					<td width='150px'><b>PRIMERO</b>&nbsp;<?php echo $this->Icono('cup1.png',-3); ?></td>
					<td width='150px'><b>SEGUNDO</b>&nbsp;<?php echo $this->Icono('cup2.png',-3); ?></td>
					<td width='150px'><b>TERCERO</b>&nbsp;<?php echo $this->Icono('cup3.png',-3); ?></td>
					<td width='160px'><b>JUGADOR</b>&nbsp;<?php echo $this->Icono('user.png',-3); ?></td>
				</tr>
			</table>
	<?php 	} ?>
			<table width='750px' class='registro'>
				<tr align='left'>
					<td width='140px'><?php echo utf8_encode($gp->piloto_pole); ?></td>
					<td width='150px'><?php echo utf8_encode($gp->piloto_p1); ?></td>
					<td width='150px'><?php echo utf8_encode($gp->piloto_p2); ?></td>
					<td width='150px'><?php echo utf8_encode($gp->piloto_p3); ?></td>
					<td width='160px'><?php echo utf8_encode($gp->persona); ?></td>
				</tr>
			</table>
	<?php } ?>
	</center>
</div>